When it's hot and dry: life-history strategy influences the effects of heat waves and water limitation